import request from "@/router/requer.js";

export function userholding(data) {
  return request({
    url: "/api/user_holding/index",
    method: "get",
    params: data,
  });
}

export function aliascycle(data) {
  return request({
    url: "/api/stock/getaliascycle",
    method: "get",
    params: data,
  });
}
export function statusList(data) {
  return request({
    url: "/api/user_holding/status_list",
    method: "get",
    params: data,
  });
}

//保持持仓
export function saveHolding(data) {
  return request({
    url: "/api/user_holding/save_holding",
    method: "post",
    data,
  });
}

//保持持仓
export function delHolding(data) {
  return request({
    url: "/api/user_holding/del_holding",
    method: "post",
    data,
  });
}


//保持持仓
export function closeHolding(data) {
  return request({
    url: "/api/user_holding/close_holding",
    method: "post",
    data,
  });
}

//价外到期
export function jiawai(data) {
  return request({
    url: "/api/user_holding/jiawai",
    method: "post",
    data,
  });
}

//保存修改
export function saveEdit(data) {
  return request({
    url: "/api/user_holding/save_edit",
    method: "post",
    data,
  });
}


